import { sellerListApi } from "@/api/user.js";
import { responseCallback } from "@/utils";
import { ref } from "vue";
export const useSellerList = function () {
  const sellerListRef = ref([]);
  responseCallback({
    promise: sellerListApi(),
  }).then((data) => {
    if (data) {
      sellerListRef.value = data;
    }
  });
  return {
    sellerList: sellerListRef,
  };
};
